home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 May / EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso / softwareupdate / cybergraphix update / cybergraphx3 / v3_update_41b48 < prev    next >
Text File  |  1997-02-27  |  10KB  |  239 lines

  1. ;*****************************************************************************
  2. ;    ______        __                  ______                     __  __   __
  3. ;   / __  /       / /                 / __  /      Update        / /  \ \ / /
  4. ;  / /  -'__  __ / /___ ______ _____ / /_ -'_____ ______ ______ / /__  \ \ /
  5. ; / /     \ \/ // __  // ____// .__// // \ / .__// __  // __  // __  / /  /  V3
  6. ;/ /___    \  // /_/ // __/_ / /   / /_/ // /   / __  // /_/ // / / / / \ \
  7. ;\____/    / //_____//_____//_/   /_____//_/   /_/ /_// ____//_/ /_/ /_/ \_\
  8. ;         /_/                                        / /
  9. ;                                                   /_/
  10. ; CyberVision64/3D - CyberVision64
  11. ;
  12. ; CyberGraphX V3 BETA Update Installer ©1996,1997 by Robert C. Reiswig 
  13. ; $VER: V0.40b (February-26-1997)
  14. ;--------------------------------------------------------------------------------
  15. ; Installer suggestions, problems or changes: vgr@best.com
  16. ;********************************************************************************
  17.  
  18. ;********************************************************************************
  19. ; Cyber Release & Boards
  20. ;********************************************************************************
  21. (set @user-level 2)
  22. (set #cyberver "V3 41.1 Beta")
  23. (set NoBoard 0)
  24. (set whereback "SYS:Storage")
  25. (message (cat "\nCyberGraphX " #cyberver "\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  26.               "\nCyberVision64/3D\n\nCyberVision64"
  27.          )
  28. )
  29.  
  30. (welcome)
  31. ;********************************************************************************
  32. ; Read All System information
  33. ;********************************************************************************
  34. (set cpu (database "cpu")) (if (> (exists ("sys:libs/68060.library")) 0) (set cpu "68060") )
  35. (set vblank (database "vblank")) (set graphmem (database "graphics-mem"))
  36. (set totmem (database "total-mem")) (set osver (/ (getversion "LIBS:version.library") 65536))
  37. (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL")))
  38. (set fastmem (- totmem graphmem))
  39. ( if (= osver 37) ( (set workbench "2.0")) ( if (= osver 38) ( (set workbench "2.1"))
  40. ( if (= osver 39) ( (set workbench "3.0")) ( if (= osver 40) ( (set workbench "3.1"))
  41. ( if (= osver 41) ( (set workbench "3.2")) )))))
  42. (set pick 0)
  43.  
  44. ;********************************************************************************
  45. ;English Strings
  46. ;********************************************************************************
  47. (set #By (cat "\n\nCyberGraphX\n\nRelease Version " #cyberver "\n\n\n\n"
  48.               "by:\n\nVision Factory Development"
  49.           
  50.          )
  51. )
  52. (set #nobackup "\n\nThis installer will copy the correct new V3 Libs and Monitor to the correct places. It will not do any backup while V3 is in beta.\n\nThis will not install V3 for the first time, it just updates V3. A V2->V3 updater is comming soon.")
  53. (set #askzorro "\nWhat type of machine is CyberGraphX V3 installed on?\n")
  54. (set #askcpu "\nWhat CPU does the machine have that you are updating CyberGraphX V3 on? The installer has found:\n")
  55. (set #wherelibs "Where are your CyberGraphX V3 libraries located? The default is 'SYS:Libs'")
  56. (set #whatboard (cat "\nPlease Select the Graphics Board you wish to update CyberGraphX Monitor File for:\n"))
  57. (set #todo-prompt "\nDo you wish to install:\n")
  58. (set #cgxmode-todo " CGXMode - Create & Change Screen Modes")
  59. (set #wheremode "Where do you wish to copy the CGXMode Program?")
  60.  
  61. ;********************************************************************************
  62. ;German Strings
  63. ;********************************************************************************
  64. (if (= @language "deutsch")
  65.  (
  66.  
  67.  (set #what "f")
  68.  
  69.  )
  70. )
  71.  
  72. ;********************************************************************************
  73. ; Start Update
  74. ;********************************************************************************
  75. ;(message #by)
  76. (message #nobackup)
  77.  
  78.  
  79. ;********************************************************************
  80. ; Double Check on the CPU
  81. ;********************************************************************
  82. (set cpu (database "cpu"))
  83. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 0))
  84. (if (= cpu 68020) (set #cpu 0)) (if (= cpu 68030) (set #cpu 0))
  85. (if (= cpu 68040) (set #cpu 1)) (if (= cpu 68006) (set #cpu 1)) 
  86. (if (= @installer-version 0)
  87.   (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 1) )
  88.   (if (= cpu 68006) (set #cpu 1))
  89. )
  90.  
  91. (set cpuPick (askchoice (choices "68020 or 68030" "68040 or 68060")
  92.             (prompt #askcpu)
  93.                     (help   #askcpu)
  94.                   (default #cpu)
  95.       )
  96. )
  97.  
  98. (if (= cpuPick 0) (set cpuadd ".020")) (if (= cpuPick 1) (set cpuadd ".040"))
  99.  
  100. ;*******************************************************************
  101. ;  ASK where cybergfx libs are
  102. ;*******************************************************************
  103. (set wherelibs   (askdir (prompt #wherelibs)
  104.              (help   #wherelibs)
  105.                   (default "SYS:Libs")
  106.          )
  107. )
  108.  
  109. ;*******************************************************************
  110. ;  Copy libs if there
  111. ;*******************************************************************
  112. (if (exists (tackon "cgxsystemlib" (cat "cgxsystem.library" cpuadd)) )
  113.   (copyfiles (source (tackon "cgxsystemlib" (cat "cgxsystem.library" cpuadd))) (dest wherelibs) (newname "cgxsystem.library") (optional "nofail") ) 
  114. )
  115.  
  116.  
  117. ;*******************************************************************
  118. ;  ASK what board to update
  119. ;*******************************************************************
  120. (set BGuess 0)
  121.  
  122. (if (> (exists ("devs:monitors/CVision3D")) 0)  (set BGuess (+ BGuess 1)) )
  123. (if (> (exists ("devs:monitors/CVision64")) 0)  (set BGuess (+ BGuess 2)) )
  124.  
  125.  
  126.  
  127.   (set board (askoptions (choices  "CyberVision64/3D" "CyberVision64"
  128.                           (prompt #whatboard)
  129.                       (help #whatboard)
  130.                           (default BGuess)
  131.                          )
  132.              )     
  133.   )
  134.  
  135.  
  136.   (if (IN board 0)
  137.    (
  138.      (set error (run "tools/ChkCV3DZorro"))
  139.      (if (> error 0) (set guessZ 1) (set guessZ 0) )
  140.   
  141.      (set pickZ (askchoice (choices "zorro2 - Amiga 2000/zorro2 Expansion Box" "zorro3 - Amiga 3000(T)/4000(T)")
  142.                        (prompt #askzorro)
  143.                        (help   #askzorro)
  144.                            (default guessZ)
  145.                 )
  146.      )
  147.   
  148.      (if (= pickZ 0) (set zadd ".Z2"))   (if (= pickZ 1) (set zadd ".Z3")) 
  149.  
  150.      (if (exists (tackon "CV3DDriver" (cat "CVision3D" zadd)))
  151.       (if (= (exists (tackon "devs:monitors" "CVision3D.info")) 0)      
  152.        (copyfiles (source (tackon "CV3DDriver" (cat "CVision3D" zadd))) (dest "devs:monitors") (newname "CVision3D") (infos) (optional "nofail") ) 
  153.        (copyfiles (source (tackon "CV3DDriver" (cat "CVision3D" zadd))) (dest "devs:monitors") (newname "CVision3D") (optional "nofail") ) 
  154.       )      
  155.      )
  156.  
  157.      (if (exists (tackon "cgxvideolib" (cat "cgxvideo.library" cpuadd)) )
  158.        (copyfiles (source (tackon "cgxvideolib" (cat "cgxvideo.library" cpuadd))) (dest wherelibs) (newname "cgxvideo.library") (optional "nofail") ) 
  159.      )
  160.  
  161.      (if (exists (tackon "cgxmpeglib" (cat "cgxmpeg.library" cpuadd)) )
  162.        (copyfiles (source (tackon "cgxmpeglib" (cat "cgxmpeg.library" cpuadd))) (dest wherelibs) (newname "cgxmpeg.library") (optional "nofail") ) 
  163.      )
  164.  
  165.      (if (exists (tackon "cgx3dvirgelib" (cat "cgx3dvirgin.library" cpuadd)) )
  166.        (copyfiles (source (tackon "cgx3dvirgelib" (cat "cgx3dvirgin.library" cpuadd))) (dest wherelibs) (newname "cgx3dvirgin.library") (optional "nofail") ) 
  167.      )
  168.  
  169.    )
  170.   )
  171.  
  172.  
  173.   (if (AND (exists (tackon "CV64Driver" "CVision64")) (IN board 1) )
  174.    (if (= (exists (tackon "devs:monitors" "CVision64.info")) 0)  
  175.     (copyfiles (source (tackon "CV64Driver" "CVision64")) (dest "devs:monitors") (newname "CVision64") (infos) (optional "nofail") ) 
  176.     (copyfiles (source (tackon "CV64Driver" "CVision64")) (dest "devs:monitors") (newname "CVision64") (optional "nofail") ) 
  177.    )
  178.   )
  179.  
  180. ;*********************************************************************************
  181. ;* Ask user to install CGXMode 
  182. ;*********************************************************************************
  183. (set ToDo (askoptions (choices #cgxmode-todo)
  184.                       (prompt #todo-prompt)
  185.                       (help #todo-prompt)
  186.                       (default 1)
  187.           )
  188.  
  189. (if (IN ToDo 0) 
  190.   ( 
  191.     (set wheremode   (askdir (prompt #wheremode)
  192.                              (help   #wheremode)
  193.                          (default "SYS:Prefs")
  194.              )
  195.     )
  196.  
  197.     (if (exists "CGXMode/CGXMode")
  198.      (if (= (exists (tackon wheremode "CGXMode.info")) 0)
  199.       (copyfiles (source "CGXMode/CGXMode")  (dest wheremode) (infos) (optional "nofail")) 
  200.       (copyfiles (source "CGXMode/CGXMode")  (dest wheremode) (optional "nofail"))          
  201.      )
  202.     )
  203.  
  204.  
  205.     (if (IN board 1) (set TTBOARD "CVision64") )    (if (IN board 0) (set TTBOARD "CVision3D") )
  206.     (if (> board 0)
  207.       (tooltype    (dest (tackon wheremode "CGXMode")) (settooltype "BOARD" TTBOARD) ) 
  208.     )
  209.  
  210.     (if (= @language "deutsch")
  211.      (
  212.        (if (= (exists "Locale:Catalogs") 0) (makedir "sys:Locale/Catalogs") )
  213.        (if (= (exists (tackon "Locale:Catalogs" "deutsch")) 0) (makedir (tackon "sys:Locale/Catalogs" "deutsch")) )
  214.        (if (exists "CGXMode/catalogs/deutsch/cgxmode.catalog")
  215.          (copyfiles (source "CGXMode/catalogs/deutsch/cgxmode.catalog") (dest "sys:Locale/Catalogs/deutsch") )
  216.        )
  217.      )
  218.     )
  219.  
  220.   )
  221. )
  222.  
  223. ;*******************************************************************
  224. ;  END
  225. ;*******************************************************************
  226. (if (> (exists ("c:multiview")) 0) (set #mpath "c:") )
  227. (if (> (exists ("sys:Utilities/multiview")) 0) (set #mpath "sys:Utilities") )
  228.  
  229. (run (cat "run " #mpath "/multiview Changes.txt") )
  230.  
  231. (set @default-dest "sys:")
  232.  
  233. (set #done "Update Complete!")
  234. (if (= @language "deutsch") (set #done "Update fertig!") )
  235.  
  236. (exit #done)
  237.